package grouplife::Schema::Result::StoresCategory;

# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE

use strict;
use warnings;

use Moose;
use MooseX::NonMoose;
use namespace::autoclean;
extends 'DBIx::Class::Core';

__PACKAGE__->load_components(qw( TimeStamp Core ));
=head1 NAME

grouplife::Schema::Result::TuanStore

=cut

__PACKAGE__->table("stores_category");

=head1 ACCESSORS

=head2 tuan_stores_id

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0

=head2 tuan_id

  data_type: 'integer'
  is_nullable: 1

=head2 stores_id

  data_type: 'integer'
  is_nullable: 1

=cut

__PACKAGE__->add_columns(
		"id",
		{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
		"created",
		{ data_type => 'datetime', timezone => "Asia/Shanghai", set_on_create => 1 },
		"updated",
                { data_type => 'datetime', timezone => "Asia/Shanghai", set_on_create => 1, set_on_update => 1 },
		"category_id",
		{ data_type => "integer", is_nullable => 1 },
		"stores_id",
		{ data_type => "integer", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("id");


# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-28 04:13:18
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fC2KTDsFIztajKjdVtnQTQ

__PACKAGE__->belongs_to(
		"stores",
		"grouplife::Schema::Result::Store",
		{ id => "stores_id" },
		{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }
		);
__PACKAGE__->belongs_to(
		"category",
		"grouplife::Schema::Result::Category",
		{ id => "category_id" },
		{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }
		);


# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
